home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / Multi-Panel Dialogs 1.1 / MPD Sources / Generic Classes / CTargeterBorder.h < prev   
Encoding:
Text File  |  1996-09-09  |  1.1 KB  |  48 lines  |  [TEXT/R*ch]

  1. // ===========================================================================
  2. //    File:                        CTargeterBorder.h
  3. // Version:                    1.0 - Feb 1, 1996
  4. //    Author:                    Mike Shields (mshields@inconnect.com)
  5. //                            
  6. //    Copyright ©1996 Mike Shields. All rights reserved.
  7. // ===========================================================================
  8. //    CTargeterBorder.cp        <- double-click + Command-D to see class definition
  9. //
  10. // Class providing a "focus box" around a pane
  11.  
  12. #pragma once
  13.  
  14. #include <LView.h>
  15.  
  16. class CTargetable;
  17. class LStream;
  18.  
  19. class    CTargeterBorder : public LView 
  20. {
  21. public:
  22.     enum { class_ID = 'Trgt' };
  23.     
  24.     static CTargeterBorder*
  25.                     CreateFromStream(LStream* inStream);
  26.                     
  27.                     CTargeterBorder();
  28.                     CTargeterBorder(LStream *inStream);
  29.     virtual        ~CTargeterBorder();
  30.     
  31.     void            FinishCreateSelf(void);
  32.  
  33.     void            Refresh();
  34.     void            DontRefresh(Boolean inOKIfHidden = false);
  35.     void            ShowFocus();
  36.     void            HideFocus();
  37.  
  38. protected:
  39.     void            DrawSelf();    
  40.     
  41.     RgnHandle    GetBoxRegion(const Rect &inFrame,
  42.                                     const Rect &inRevealed) const;
  43.     
  44.     CTargetable*    mTarget;
  45.     PaneIDT            mTargetedPaneID;
  46.     Boolean            mIsTargeted;
  47. };
  48.